Expand description
A crate which contains primitives that are useful for implementation that uses staking approaches in general. Definitions related to sessions, slashing, etc go here.
Modules§
- Common traits and types that are useful for describing offences for usage in environments that use staking.
Macros§
- Enable/disable the given code depending on
feature = "runtime-benchmarks"
being enabled for the crate or not.
Structs§
- A type that belongs only in the context of an
Agent
. - A type that belongs only in the context of a
Delegator
. - A snapshot of the stake backing a single validator in the system.
- A snapshot of the stake backing a single validator in the system.
- The amount of exposure for an era that an individual nominator has (susceptible to slashing).
- Metadata for Paged Exposure of a validator such as total stake across pages and page count.
- A struct that reflects stake that an account has in the staking system. Provides a set of methods to operate on it’s properties. Aimed at making
StakingInterface
more concise.
Enums§
- Representation of the status of a staker.
- Representation of a staking account, which may be a stash or controller account.
Traits§
- Trait to provide delegation functionality for stakers.
- Trait to provide functionality for direct stakers to migrate to delegation agents. See
DelegationInterface
for more details on delegation. - A generic staking event listener.
- A generic representation of a staking implementation.
- Set of low level apis to manipulate staking ledger.
Type Aliases§
- Counter for the number of eras that have passed.
- Type for identifying a page.
- Simple index type with which we can count sessions.